package com.megalith.config;

import com.google.common.collect.Lists;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.AntPathMatcher;
import org.springframework.util.PathMatcher;

import java.util.List;

/**
 * @Description 权限配置类
 * @Author lfp
 * @Date 2021/4/12 14:59
 * @Version 1.0
 */
@Data
@Configuration
@ConfigurationProperties("platform.security")
public class SecurityConfig {
    private List<String> skipAuthUrls = Lists.newCopyOnWriteArrayList();

    @Bean
    public PathMatcher mvcPathMatcher() {
        return new AntPathMatcher();
    }
}
